/*
 * XML Type:  SecurityListResponseMessageSetV1
 * Namespace: http://ofx.net/types/2003/04
 * Java type: net.ofx.types.x2003.x04.SecurityListResponseMessageSetV1
 *
 * Automatically generated - do not modify.
 */
package net.ofx.types.x2003.x04.impl;
/**
 * An XML SecurityListResponseMessageSetV1(@http://ofx.net/types/2003/04).
 *
 * This is a complex type.
 */
public class SecurityListResponseMessageSetV1Impl extends net.ofx.types.x2003.x04.impl.AbstractResponseMessageSetImpl implements net.ofx.types.x2003.x04.SecurityListResponseMessageSetV1
{
    
    public SecurityListResponseMessageSetV1Impl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName SECLISTTRNRS$0 = 
        new javax.xml.namespace.QName("", "SECLISTTRNRS");
    private static final javax.xml.namespace.QName SECLIST$2 = 
        new javax.xml.namespace.QName("", "SECLIST");
    
    
    /**
     * Gets array of all "SECLISTTRNRS" elements
     */
    public net.ofx.types.x2003.x04.SecurityListTransactionResponse[] getSECLISTTRNRSArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(SECLISTTRNRS$0, targetList);
            net.ofx.types.x2003.x04.SecurityListTransactionResponse[] result = new net.ofx.types.x2003.x04.SecurityListTransactionResponse[targetList.size()];
            targetList.toArray(result);
            return result;
        }
    }
    
    /**
     * Gets ith "SECLISTTRNRS" element
     */
    public net.ofx.types.x2003.x04.SecurityListTransactionResponse getSECLISTTRNRSArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.SecurityListTransactionResponse target = null;
            target = (net.ofx.types.x2003.x04.SecurityListTransactionResponse)get_store().find_element_user(SECLISTTRNRS$0, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "SECLISTTRNRS" element
     */
    public int sizeOfSECLISTTRNRSArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(SECLISTTRNRS$0);
        }
    }
    
    /**
     * Sets array of all "SECLISTTRNRS" element
     */
    public void setSECLISTTRNRSArray(net.ofx.types.x2003.x04.SecurityListTransactionResponse[] seclisttrnrsArray)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(seclisttrnrsArray, SECLISTTRNRS$0);
        }
    }
    
    /**
     * Sets ith "SECLISTTRNRS" element
     */
    public void setSECLISTTRNRSArray(int i, net.ofx.types.x2003.x04.SecurityListTransactionResponse seclisttrnrs)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.SecurityListTransactionResponse target = null;
            target = (net.ofx.types.x2003.x04.SecurityListTransactionResponse)get_store().find_element_user(SECLISTTRNRS$0, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            target.set(seclisttrnrs);
        }
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "SECLISTTRNRS" element
     */
    public net.ofx.types.x2003.x04.SecurityListTransactionResponse insertNewSECLISTTRNRS(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.SecurityListTransactionResponse target = null;
            target = (net.ofx.types.x2003.x04.SecurityListTransactionResponse)get_store().insert_element_user(SECLISTTRNRS$0, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "SECLISTTRNRS" element
     */
    public net.ofx.types.x2003.x04.SecurityListTransactionResponse addNewSECLISTTRNRS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.SecurityListTransactionResponse target = null;
            target = (net.ofx.types.x2003.x04.SecurityListTransactionResponse)get_store().add_element_user(SECLISTTRNRS$0);
            return target;
        }
    }
    
    /**
     * Removes the ith "SECLISTTRNRS" element
     */
    public void removeSECLISTTRNRS(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(SECLISTTRNRS$0, i);
        }
    }
    
    /**
     * Gets the "SECLIST" element
     */
    public net.ofx.types.x2003.x04.SecurityList getSECLIST()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.SecurityList target = null;
            target = (net.ofx.types.x2003.x04.SecurityList)get_store().find_element_user(SECLIST$2, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "SECLIST" element
     */
    public boolean isSetSECLIST()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(SECLIST$2) != 0;
        }
    }
    
    /**
     * Sets the "SECLIST" element
     */
    public void setSECLIST(net.ofx.types.x2003.x04.SecurityList seclist)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.SecurityList target = null;
            target = (net.ofx.types.x2003.x04.SecurityList)get_store().find_element_user(SECLIST$2, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.SecurityList)get_store().add_element_user(SECLIST$2);
            }
            target.set(seclist);
        }
    }
    
    /**
     * Appends and returns a new empty "SECLIST" element
     */
    public net.ofx.types.x2003.x04.SecurityList addNewSECLIST()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.SecurityList target = null;
            target = (net.ofx.types.x2003.x04.SecurityList)get_store().add_element_user(SECLIST$2);
            return target;
        }
    }
    
    /**
     * Unsets the "SECLIST" element
     */
    public void unsetSECLIST()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(SECLIST$2, 0);
        }
    }
}
